package interfacetest;

import java.util.Locale;
import java.util.function.Function;

public class FunctionTest {
    public static void main(String[] args) {
        String name = hand("name", (s) -> s.toUpperCase(Locale.ROOT));
        System.out.println(name);
    }

    public static String hand(String s , Function<String,String> function){
        return function.apply(s);
    }
}
